package com.ddwl.data;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/8/8 16:39
 */
@SpringBootApplication
@ComponentScan("com.ddwl")
@MapperScan("com.ddwl.data.mapper")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.ddwl.common.feign.api", "com.ddwl.common.feign.thirdparty", "com.ddwl.common.feign.thirdparty"})
@EnableMongoRepositories("com.ddwl.data.repository")
public class DataApplication {
    public static void main(String[] args) {
        SpringApplication.run(DataApplication.class, args);
    }
}
